package com.lhj.xxsc.product.feign;

import com.lhj.xxsc.product.feign.fallback.SeckillFeignServiceFallBack;
import com.xxsc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 罗惠江
 * @version 1.0
 * @email 1511619294@qq.com
 * @date 2021/1/13 19:21
 */
@FeignClient(value = "xxsc-seckill", fallback = SeckillFeignServiceFallBack.class)
public interface SeckillFeignService {
	@GetMapping("/sku/seckill/{skuId}")
	R getSkuSeckillInfo(@PathVariable("skuId") Long skuId);
}
